package com.sdonkey.score.dto;

import com.sdonkey.score.bean.UserLoginBean;

import java.io.Serializable;

/**
 * 用户信息数据传输类
 * @author ZhaoShihao
 * @version 1.0
 */
public class UserInfoDto implements Serializable{
    private Integer id;
    private String email;
    private String mobile;
    private String name;
    private Double balance;
    private String image;

    public UserInfoDto() {
    }

    public UserInfoDto(UserLoginBean loginBean) {
        if (loginBean != null) {
            this.id = loginBean.getDevId();
            this.email = loginBean.getMail();
            this.mobile = loginBean.getTel_num();
            this.name = loginBean.getName();
            this.balance = Double.valueOf(loginBean.getBalance());
            this.image=loginBean.getImage_url();
        }
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getMobile() {
        return mobile;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Double getBalance() {
        return balance;
    }

    public void setBalance(Double balance) {
        this.balance = balance;
    }

    public String getImage() {
        return image;
    }

    public void setImage(String image) {
        this.image = image;
    }
}
